NonEmptyArray<'value>Union

PackageReified.Refinements
An array that contains at least one item.

Specification

Kind
Union
Members
4
Examples
0
ToArraySignature
this.ToArray
LengthSignature
this.Length
HeadSignature
this.Head
TailSignature
this.Tail

Summary

NameSignatureSynopsis
ToArraythis.ToArrayReturns a copy of the refined value as a standard array.
Lengththis.LengthReturns the number of items, which is always at least one.
Headthis.HeadReturns the first item.
Tailthis.TailReturns all items after the head.

ToArray

this.ToArray
Member
Returns a copy of the refined value as a standard array.

Returns

'value[]

Length

this.Length
Member
Returns the number of items, which is always at least one.

Returns

int

Head

this.Head
Member
Returns the first item.

Returns

'value

Tail

this.Tail
Member
Returns all items after the head.

Returns

'value[]